home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / AMT / Sample AMT⁄PE Code / SOURCES / oMMENU_2.k < prev    next >
Encoding:
Text File  |  1996-03-04  |  4.9 KB  |  279 lines  |  [TEXT/MPS ]

  1. object oMMENU_2 is cDefaultContainer
  2. has
  3.     CurMenu;
  4.     MenuPops;
  5.     MenuSpots;
  6. with
  7.     CurMenu is void;
  8.     MenuPops is [
  9.         oPOPPROD_2_25,
  10.         oPOPSUCC_2_35,
  11.         oPOPREF_2_19,
  12.         oPOPTUTR_2_22,
  13.         oPOPSAMPL_PIC_2_21
  14.     ];
  15.     
  16.     MenuSpots is [
  17.         oMENU1_3_9,
  18.         oMENU2_3_11,
  19.         oMENU3_3_12,
  20.         oMENU4_3_13,
  21.         oMENU5_3_18,
  22.         oMENU6_3_19,
  23.         oMENU7_3_40,
  24.         oMENU8_3_41,
  25.         oMENU9_3_42,
  26.         oMENU10_3_43,
  27.         oMENU11_3_44,
  28.         oMENU12_3_45,
  29.         oMENU13_3_45
  30.     ];
  31.     
  32.     Binder is oBinder;
  33.     Label is -1;
  34.     Items is [
  35.         oMMENU_PIC_2_8,
  36.         oPOPPROD_2_25,
  37.         oPOPSUCC_2_35,
  38.         oPOPREF_2_19,
  39.         oPOPTUTR_2_22,
  40.         oPOPSAMPL_PIC_2_21,
  41.         
  42.         oMENU1_3_9,
  43.         oMENU2_3_11,
  44.         oMENU3_3_12,
  45.         oMENU4_3_13,
  46.         oMENU5_3_18,
  47.         oMENU6_3_19,
  48.         oMENU7_3_40,
  49.         oMENU8_3_41,
  50.         oMENU9_3_42,
  51.         oMENU10_3_43,
  52.         oMENU11_3_44,
  53.         oMENU12_3_45,
  54.         oMENU13_3_45,
  55.  
  56.         oBTNQUIT_PIC_2_29,
  57.         oPOPUP_PIC_3_29,
  58.         oBTNABRT_PIC_3_31,
  59.         oBTNCONT_PIC_3_32
  60.     ];
  61. end;
  62.  
  63.  
  64. object oMMENU_PIC_2_8 is cPictureHandler
  65. with
  66.     Duration is -1;
  67.     Supplier is oMMENU_PIC_10_;
  68.     Behavior is cDefaultBehavior
  69.     has
  70.     with
  71.         Enabled is false; Shown is true; 
  72.         X is 0; Y is 0; Width is 640; Height is 480;
  73.     end;
  74. end;
  75.  
  76.  
  77. object oPOPPROD_2_25 is cPictureHandler
  78. with
  79.     Duration is -1;
  80.     Supplier is oPOPPROD_PIC_30_;
  81.     Behavior is cDefaultBehavior
  82.     has
  83.         Offscreen(theTarget)
  84.             do
  85.                 theTarget.Show(false);
  86.             end;
  87.         
  88.         MouseEnter(theTarget, theX, theY)
  89.             do
  90.                 oMMENU_2.CurMenu := oPRODINFO_MENU;
  91.                 theTarget.container.MenuSpots.EachUp(SetEnable);
  92.                 theTarget.container.MenuPops.EachUp(Show, false);
  93.                 theTarget.Show(true);
  94.             end;
  95.         
  96.         
  97.         MouseUp(theTarget, theX, theY)
  98.             do
  99.                 oBinder.Goto(oPRODINFO_3);
  100.             end;
  101.         
  102.     with
  103.         Enabled is true; Shown is false; 
  104.         X is 59; Y is 126; Width is 447; Height is 86;
  105.         Region is {
  106.             $00030000, $00160002, $000100B8, $00560000, $FFFFFFFF
  107.         };
  108.     end;
  109. end;
  110.  
  111.  
  112. object oPOPSUCC_2_35 is cPictureHandler
  113. with
  114.     Duration is -1;
  115.     Supplier is oPOPSUCC_PIC_33_;
  116.     Behavior is cDefaultBehavior
  117.     has
  118.         Offscreen(theTarget)
  119.             do
  120.                 theTarget.Show(false);
  121.             end;
  122.         
  123.         MouseEnter(theTarget, theX, theY)
  124.             do
  125.                 oMMENU_2.CurMenu := oSUCC_MENU;
  126.                 theTarget.container.MenuSpots.EachUp(SetEnable);
  127.                 theTarget.container.MenuPops.EachUp(Show, false);
  128.                 theTarget.Show(true);
  129.             end;
  130.         
  131.         MouseUp(theTarget, theX, theY)
  132.             do
  133.                 oBinder.Goto(oSUCCSTORY_4);
  134.             end;
  135.         
  136.     with
  137.         Enabled is true; Shown is false; 
  138.         X is 59; Y is 126; Width is 447; Height is 247;
  139.         Region is {
  140.             $003E0000, $00560002, $002B00B7, $00F70000, $FFFFFFFF
  141.         };
  142.     end;
  143. end;
  144.  
  145.  
  146. object oPOPREF_2_19 is cPictureHandler
  147. with
  148.     Duration is -1;
  149.     Supplier is oPOPREF_PIC_32_;
  150.     Behavior is cDefaultBehavior
  151.     has
  152.         Offscreen(theTarget)
  153.             do
  154.                 theTarget.Show(false);
  155.             end;
  156.         
  157.         MouseEnter(theTarget, theX, theY)
  158.             do
  159.                 oMMENU_2.CurMenu := oREF_MENU;
  160.                 theTarget.container.MenuSpots.EachUp(SetEnable);
  161.                 theTarget.container.MenuPops.EachUp(Show, false);
  162.                 theTarget.Show(true);
  163.             end;
  164.         
  165.         MouseUp(theTarget, theX, theY)
  166.             do
  167.                 oBinder.Goto(oREF_5);
  168.             end;
  169.         
  170.     with
  171.         Enabled is true; Shown is false; 
  172.         X is 59; Y is 249; Width is 446; Height is 146;
  173.         Region is {
  174.             $00010000, $00190002, $004F00B8, $00920000, $FFFFFFFF
  175.         };
  176.     end;
  177. end;
  178.  
  179.  
  180. object oPOPTUTR_2_22 is cPictureHandler
  181. with
  182.     Duration is -1;
  183.     Supplier is oPOPTUTR_PIC_31_;
  184.     Behavior is cDefaultBehavior
  185.     has
  186.         Offscreen(theTarget)
  187.             do
  188.                 theTarget.Show(false);
  189.             end;
  190.         
  191.         MouseEnter(theTarget, theX, theY)
  192.             do
  193.                 oMMENU_2.CurMenu := oTUT_MENU;
  194.                 theTarget.container.MenuSpots.EachUp(SetEnable);
  195.                 theTarget.container.MenuPops.EachUp(Show, false);
  196.                 theTarget.Show(true);
  197.             end;
  198.         
  199.         MouseUp(theTarget, theX, theY)
  200.             do
  201.                 oBinder.Goto(oTUT_6);
  202.             end;
  203.         
  204.     with
  205.         Enabled is true; Shown is false; 
  206.         X is 59; Y is 207; Width is 447; Height is 188;
  207.         Region is {
  208.             $00650000, $007E0002, $000400B6, $00BC0000, $FFFFFFFF
  209.         };
  210.     end;
  211. end;
  212.  
  213.  
  214. object oPOPSAMPL_PIC_2_21 is cPictureHandler
  215. with
  216.     Duration is -1;
  217.     Supplier is oPOPSAMPL_PIC_34_;
  218.     Behavior is cDefaultBehavior
  219.     has
  220.         Offscreen(theTarget)
  221.             do
  222.                 theTarget.Show(false);
  223.             end;
  224.         
  225.         MouseEnter(theTarget, theX, theY)
  226.             do
  227.                 oMMENU_2.CurMenu := oSAMP_MENU;
  228.                 theTarget.container.MenuSpots.EachUp(SetEnable);
  229.                 theTarget.container.MenuPops.EachUp(Show, false);
  230.                 theTarget.Show(true);
  231.             end;
  232.         
  233.         MouseUp(theTarget, theX, theY)
  234.             do
  235.                 oBinder.Goto(oSAMPMEDIA_7);
  236.             end;
  237.         
  238.     with
  239.         Enabled is true; Shown is false; 
  240.         X is 59; Y is 329; Width is 447; Height is 66;
  241.         Region is {
  242.             $00270000, $003E0002, $003500B6, $00420000, $FFFFFFFF
  243.         };
  244.     end;
  245. end;
  246.  
  247.  
  248. object oBTNQUIT_PIC_2_29 is cFlipbookHandler
  249. with
  250.     FirstFrame is 0;
  251.     Looping is false;
  252.     Rythm is 1;
  253.     Supplier is oBTNQUIT_PIC_27_;
  254.     Behavior is cDefaultBehavior
  255.     has
  256.         Offscreen(theTarget)
  257.             do
  258.                 theTarget.Enable(true);
  259.                 theTarget.Show(true);
  260.             end;
  261.         
  262.         MouseDown(theTarget, theX, theY)
  263.             do
  264.                 theTarget.GoToBeginning();
  265.             end;
  266.         
  267.         MouseUp(theTarget, theX, theY)
  268.             do
  269.                 theTarget.GotoEnd();
  270.                 oBinder.Quit();
  271.             end;
  272.         
  273.     with
  274.         Enabled is true; Shown is true; 
  275.         X is 542; Y is 456; Width is 66; Height is 24;
  276.     end;
  277. end;
  278.  
  279.